
package com.offlineanswer;

import android.annotation.SuppressLint;
import android.app.Application;
import android.content.SharedPreferences;

public class App extends Application {
    public static SharedPreferences sp;

    @Override
    public void onCreate() {
        super.onCreate();
        sp=getSharedPreferences("data",MODE_PRIVATE);
        String min = sp.getString("min", "null");
        String max = sp.getString("max", "null");
        if (min.equals("null")||max.equals("null")){
            @SuppressLint("CommitPrefEdits") SharedPreferences.Editor edit = sp.edit();
            edit.putString("min","60");
            edit.putString("max","80");
            edit.apply();
        }
    }
}
